package com.aznest;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement //开启注解方式的事务管理
@EnableCaching
@Slf4j
public class AznestApplication {
    public static void main(String[] args) {
        try {
            log.info("启动类开始");
            SpringApplication.run(AznestApplication.class, args);
            log.info("启动类结束");
        } catch (Throwable  e) {
            e.printStackTrace(); // 打印完整异常
            log.debug(e.getMessage());
        }
        log.info("aznest启动成功");

    }
}
